<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnPlanResourceInProjectTable extends AbstractMigration
{
    public function up()
    {
        $this->table('project')
            ->addColumn('plan_resource', 'integer', ['signed' => false, 'default' => 0, 'limit' => 11, 'comment' => '计划投入人数资源'])
            ->save();
    }

    public function down()
    {
        $this->table('project')
            ->removeColumn('plan_resource')
            ->save();
    }
}
